package com.shadow.demo.excel.easy.excel;

import com.alibaba.excel.support.ExcelTypeEnum;
import com.shadow.demo.common.enums.excel.BaseEnum;
import lombok.Getter;

/**
* Excel文件后缀类型枚举.
**/
@Getter
public enum ExcelSuffixEnum implements BaseEnum<String> {

    XLSX(".xlsx", "Excel2007及以后的后缀格式", ExcelTypeEnum.XLSX),
    XLS(".xls", "普通Excel的后缀格式", ExcelTypeEnum.XLS),
    CSV(".csv", "csv文件后缀格式", ExcelTypeEnum.CSV),
    ;

    /** 枚举值. **/
    private final String value;
    /** 描述. **/
    private final String name;
    /** 对应easyExcel枚举对象. **/
    private final ExcelTypeEnum excelTypeEnum;

    ExcelSuffixEnum(final String value, final String name, final ExcelTypeEnum excelTypeEnum) {
        this.value = value;
        this.name = name;
        this.excelTypeEnum = excelTypeEnum;
    }
}
